﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Build.Player;
using System.IO;
using Main;

public class HotfixUtilities : Editor
{
    public static void CopyHotdixDll()
    {
        // 要移动的文件
        string[] files = new string[]
        {
            "Hotfix.dll",
            "Hotfix.pdb"
        };
        string DllPath = PathConfig.CodeDllPath;
        if (Directory.Exists(DllPath) == false)
        {
            Directory.CreateDirectory(DllPath);
        }
        foreach (var file in files)
        {
            File.Copy(PathConfig.CompilePath + file, DllPath + file + ".bytes", true);
        }
    }
}
